#pragma once

#ifndef TOUCH_DATA_H
#define TOUCH_DATA_H

#define TOUCH_EVENT 1
#define UPDATE_EVENT 2
#define UNTOUCH_EVENT 3

#include "cvhead.h"

class TouchData
{
public:
	int tEvent;
	int ID;
	int tagID;
	float lastX;
	float lastY;
	float X;
	float Y;

	float height;
	float width;
	float angle;

	float area;

	float dX;
	float dY;

	double last_sph_log;
	double last_sph_lat;
	double sphere_longitude;
	double sphere_latitude;

	TouchData(void);
	~TouchData(void);

	CvPoint getCenter();

};


#endif